package com.zhangyusheng.easyecharts.component;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * TODO: 自定义单个柱子颜色
 *
 * @author Michael zhang
 * @email zhangys_0217@sina.com
 * @since 2025年11月03日
 */
@Data
@Accessors(chain = true)
public class ItemStyle implements Serializable {
    private final static long serialVersionUID = 2L;

    private String color;
    private String borderColor;

    public static class Builder{
        private String color;
        private String borderColor;


        public Builder color(String color){
            this.color = color;
            return this;
        }
        public Builder borderColor(String borderColor){
            this.borderColor = borderColor;
            return this;
        }
        public ItemStyle build(){
            return new ItemStyle(this);
        }
    }
    private ItemStyle(Builder builder){
        this.color = builder.color;
        this.borderColor = builder.borderColor;
    }

}